package cn.iocoder.yudao.module.stock.controller.admin.stock.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 商品库存新增/修改 Request VO")
@Data
public class StockSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "15636")
    private Long id;

    @Schema(description = "商品id", requiredMode = Schema.RequiredMode.REQUIRED, example = "26636")
    @NotNull(message = "商品id不能为空")
    private Long productId;

    @Schema(description = "可用数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "可用数量不能为空")
    private Integer availableQuantity;

    @Schema(description = "锁定数量")
    private Integer lockedQuantity;

}